﻿package fpc.containers;
import fpc.layouts.ILayoutable;
import fpc.layouts.ILineLayout;

class LineContainer extends Container<ILineLayout>
{
	public function new(layout:ILineLayout)
	{
		super(layout);
	}
	
	public function add(component:ILayoutable)
	{
		_layout.add(component);
	}
	
	public function remove(component:ILayoutable)
	{
		_layout.remove(component);
	}
	
	public function addBefore(component:ILayoutable, rightComponent:ILayoutable)
	{
		_layout.addBefore(component, rightComponent);
	}
	
	public function addAfter(leftComponent:ILayoutable, component:ILayoutable)
	{
		_layout.addAfter(leftComponent, component);
	}
}